<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-03 01:16:57
 * @LastEditTime: 2023-08-28 13:37:38
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 */

namespace App\Models;

use App\Traits\MaterialTrait;

class MpcSummaryStorage extends BaseModel
    {
    use MaterialTrait;
    // use SoftDeletesTrait;
    public $timestamps = true;
    public $table = "sys_mpc_summary_storage";
    protected $guarded = [];
    protected $casts = [];

    public function deltails()
        {
        return $this->hasMany(MpcSummaryDetail::class, "summary_storage_id");
        }
    public function order()
        {
        return $this->belongsTo(CustomerStorageDetail::class, "batchno", "batchno");
        }
    }